home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cbibcode.arc
/
GETCWD.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-08-05
|
258 b
|
17 lines
/* getcwd.c function, from page 379 turbo c bible */
#include<stdio.h>
#include<dir.h>
main()
{
char pathname[81];
if(getcwd(pathname, 80) == NULL)
{
perror("error in getcwd");
}
else
{
printf("current dir: %s\n", pathname);
}
}